Professional Android by Meier Reto & Ian Lake

Professional Android by Meier Reto & Ian Lake

Author:Meier, Reto & Ian Lake [Неизв.]
Language: eng
Format: epub
ISBN: 9781118949535
Publisher: John Wiley & Sons, Inc. (trade)
Published: 2018-09-19T00:00:00+00:00


Keep in mind that including multiple sizes of bitmaps does have a cost in the form of an increased size of your application. In addition, while these pixel density buckets give you a rough set of densities to target, there are devices that exist between these generic buckets; where a specific resolution asset is unavailable, Android will automatically scale your bitmaps for these devices, preferring to scale down.

Supporting and Optimizing for Different Screen Sizes

Android devices come in countless shapes and sizes (though so far mainly quadrilaterals and circles), so when designing your UI it’s important to ensure that your layouts not only support different screen sizes, orientations, and aspect ratios, but also that they’re accordingly optimized.

It’s neither practical nor desirable to create a layout specific to each possible screen configuration; instead, best practice is to take a two-phased approach:

Ensure that all your layouts are capable of scaling within a reasonable set of bounds.

Create a set of alternative layouts whose bounds overlap, such that all possible screen configurations are covered.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.